import axios from "../utils/axiosUtil"

//封装一个函数用于获取所有分类
//data = {parentId:0,id:1}
export const getAllCategoryApi = (data) => {
    return axios.get("/categroy/findCategroy",{
        params:data
    })
}
//添加分类信息
export const addCategoryApi = (data) => {
    return axios.post("/categroy/addCategroy",data)
}

/**
 * 专门用于级联的数据
 */
export const findCategroyTreeDataApi = ()=>{
    return axios.get("/categroy/findAllCategroy")
}
